package com.dstz.sys.controller;

import com.dstz.base.api.response.impl.ResultMsg;
import com.dstz.org.api.service.UserService;
import com.dstz.sys.model.Notice;
import com.dstz.sys.service.IndexMsgService;
import com.dstz.sys.util.HttpUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/indexdata")
public class IndexMsgController {

    @Autowired
    IndexMsgService indexMsgService;

    @GetMapping("/getNoticeMsg")
    public List<Notice>  getNoticeMsg() throws IOException {
        return indexMsgService.getNoticeMsg();
    }
}
